package com.taiji.dicom4cloud.smart.handler;

import cn.hutool.core.util.ObjectUtil;

import java.util.HashMap;
import java.util.Map;

public class CameraHelp {

    private static Map<String, String> onLineCamera = new HashMap<>();



    public static void removeCamera(String key){

        if(ObjectUtil.isNotNull(onLineCamera.get(key))){
            onLineCamera.remove(key);
        }
    }

    public static void addCamera(String key){
        onLineCamera.put(key,"");
    }

    public static boolean getCamera(String key){
        if(ObjectUtil.isNotNull(onLineCamera.get(key))){
            return true;
        }
        return false;
    }
}
